<?php
    #-------------------------------------------------------------#
	# This file is part of the Kumomado - Virtual Window Platform #
	# for PHP. (c) 2009 Tsai, Min Che <tirme0812@gmail.com>       #
	# Please visit http://www.kumomado.org/ for more information. #
	#                                                             #
	# This software is licensed under the GNU License v3. Please  #
	# view the LICENSE file for the full text of this license.    #
    #-------------------------------------------------------------#

	Kumomado::load('MVCHelper.KumomadoController');
	/**
	 *
	 * @package libraries/mvchelper/controller/
	 * @author Tsai, Min Che
	 * @version 1.0
	 * @abstract
	 */
	abstract class KumomadoAbstractController implements KumomadoController {
		/**
		 * @var object
		 * @link KumomadoModel
		 */
		protected $model;
		/**
		 * @var object
		 * @link KumomadoView
		 */
		protected $view;
		/**
		 * @return object @link KumomadoModel
		 */
		public function setModel(KumomadoModel $model) {
			$this->model = $model;
		}
		/**
		 * @param object $view @link KumomadoView
		 */
		public function setView(KumomadoView $view) {
			$this->view = $view;
		}
		/**
		 * Call this function before the controller's action, you can rewrite in the controller class
		 */
		public function beforeAction() {

		}
		/**
		 * Call this function after the controller's action, you can rewrite in the controller class
		 */
		public function afterAction() {

		}
	}
?>